package com.happe.foodeasy.dto;

import com.happe.foodeasy.helper.DigestHelper;

/**
 * receive data for corresponding real entity, this class is
 * for CustomerEntity entity.
 * Created by wubin on 2016-05-06.
 */
public class CustomerDTO {
    private String username;
    private String password;
    private String phone;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = DigestHelper.getMD5(password);
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
